﻿<div ng-controller="selectBorrowerController">
    <div class="row-content am-cf">
        <div class="row">
            <div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
                <div class="widget am-cf">
                    <div class="widget-head am-cf">
                        <div class="widget-title am-fl">借阅人管理</div>
                        <div class="widget-function am-fr">
                            <!--<a href="javascript:;" class="am-icon-cog"></a>-->
                        </div>
                    </div>

                    <div class="widget-body  widget-body-lg am-fr">
                        <div class="am-u-sm-12 am-u-md-6 am-u-lg-5">
                            <div class="am-form-group">
                                <div class="am-btn-toolbar">
                                    <div class="am-btn-group am-btn-group-xs">
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="am-u-sm-12 am-u-md-6 am-u-lg-3">
                            <div class="am-form-group tpl-table-list-select">
                                <!--<select data-am-selected="{btnSize: 'sm'}" title="请选择借阅人性别" style="color:darkslategrey; line-height:33px; height:33px;" ng-model="filter.gender">
                                    <option value="">请选择借阅人性别</option>
                                    <option value="1">女</option>
                                    <option value="2">男</option>
                                </select>-->
                            </div>
                        </div>
                        <div class="am-u-sm-12 am-u-md-12 am-u-lg-3">
                            <div class="am-input-group am-input-group-sm tpl-form-border-form cl-p">
                                <input type="text" class="am-form-field " placeholder="请输入借阅人姓名" title="请输入借阅人姓名" ng-model="filter.borrowerName">
                                <span class="am-input-group-btn">
                                    <button class="am-btn  am-btn-default am-btn-success tpl-table-list-field am-icon-search" type="button" ng-click="reflash()"></button>
                                </span>
                            </div>
                        </div>
                        <div class="am-u-sm-12">
                            <table ng-table="tableParams" class="am-table am-table-compact tpl-table-black " id="data-table" template-pagination="template/pagination.html">
                                <thead>
                                    <tr>
                                        <th style="text-align:left;">姓名</th>
                                        <th style="text-align:left;">性别</th>
                                        <th style="text-align:left;">手机号</th>
                                        <th style="text-align:left;">邮箱</th>
                                        <th style="text-align:left;">家庭关系</th>
                                        <th style="text-align:left;">诚信记录</th>
                                        <th style="text-align:left;">创建日期</th>
                                        <th style="text-align:left;"></th>
                                    </tr>
                                </thead>
                                <tbody>
                                    <tr class="gradeX" ng-repeat="item in $data">
                                        <td>{{item.borrowerName}}</td>
                                        <td><span ng-if="item.gender==1">女</span><span ng-if="item.gender==2">男</span></td>
                                        <td>{{item.cellphone}}</td>
                                        <td>{{item.email}}</td>
                                        <td>{{item.relationship}}</td>
                                        <td><span ng-if="item.record==1">及时归还</span><span ng-if="item.record==2">延迟归还</span></td>
                                        <td>{{item.cTime|date:'yyyy-MM-dd hh:mm:ss'}}</td>
                                        <td>
                                            <div class="tpl-table-black-operation">
                                                <a href="javascript:;" ng-click="select(item)">
                                                    <i class="am-icon-pencil"></i> 选择
                                                </a>
                                            </div>
                                        </td>
                                    </tr>

                                    <!-- more data -->
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
